package com.bwda.dsrs.filecenter.service;

import com.bwda.dsrs.base.centerbase.response.ResponseEntity;
import com.bwda.dsrs.filecenter.domain.condition.sensitivelevel.SensitiveLevelCondition;
import com.bwda.dsrs.filecenter.domain.exception.BusinessServiceException;
import com.bwda.dsrs.filecenter.domain.form.sensitivelevel.SensitiveLevelUpdateForm;
import com.bwda.dsrs.filecenter.domain.po.sensitivelevel.SensitiveLevelPo;
import java.util.List;
import java.util.Map;

/**
 * 业务配置--敏感等级--服务层接口
 *
 * @author zhangyinmei
 * @date 2019年4月28日
 */
public interface SensitiveLevelService extends BaseService<SensitiveLevelPo, SensitiveLevelCondition> {

    /**
     * 校验敏感等级规则
     *
     * @param form form
     * @return the response entity
     * @throws BusinessServiceException business service exception
     */
    ResponseEntity checkSensitiveLevelRule(SensitiveLevelUpdateForm form) throws BusinessServiceException;

    /**
     * 根据敏感扫描结果查询所属敏感等级
     *
     * @param sensitiveWordsMap sensitive words map
     * @return integer
     * @throws BusinessServiceException business service exception
     */
    Integer querySensitiveLevel(Map<Integer, Integer> sensitiveWordsMap) throws BusinessServiceException;
}
